package com.wangwei.jvm.gc;

public class TryJstack {

    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            synchronized (TryJstack.class) {
                while (true) {

                }
            }
        });
        t1.start();
        Thread t2 = new Thread(() -> {
            synchronized (TryJstack.class) {
                while (true) {

                }
            }
        });
        t2.start();
    }


}
